﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.DbEntity
{
    /// <summary>
    /// 说说表
    /// </summary>
    public class Said
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Comment("主键")]
        public Guid Id { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Comment("内容")]
        public string Content { get; set; }

        /// <summary>
        /// 是否私密
        /// </summary>
        [Comment("是否私密")]
        public bool IsPrivacy { get; set; }

        /// <summary>
        /// 是否可以评论
        /// </summary>
        [Comment("是否可以评论")]
        public bool IsComments { get; set; }

        /// <summary>
        /// 浏览数
        /// </summary>
        [Comment("浏览数")]
        public int Browse { get; set; }

        /// <summary>
        /// 喜欢
        /// </summary>
        [Comment("喜欢")]
        public int Like { get; set; }

        /// <summary>
        /// 图片 逗号隔开
        /// </summary>
        [Comment("图片 逗号隔开")]
        public string Images { get; set; }

        /// <summary>
        /// 位置
        /// </summary>
        [Comment("位置")]
        public string Address { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Comment("是否删除")]
        public bool IsDelete { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Comment("创建人")]
        public Guid? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Comment("修改人")]
        public Guid? UpdatedBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Comment("修改时间")]
        public DateTime? UpdatedTime { get; set; }
    }
}
